/**
 * User: alesj
 * Date: 15.1.2006
 * Time: 15:36:58
 * 
 * (C) Genera Lynx d.o.o.
 */

package com.alesj.blueberry.spring.parsing;

import com.alesj.blueberry.spring.result.MessageInfo;

/**
 * @author <a href="mailto:ales.justin@genera-lynx.com">Ales Justin</a>
 */
public abstract class ParseException extends Exception implements MessageInfo {

    private int value;

    public ParseException(int value) {
        this.value = value;
    }

    public Object[] getArgs() {
        return new Object[]{getValue()};
    }

    public Integer getValue() {
        return value;
    }

}
